<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('客户')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-customer_id" data-rule="required" min="0" data-source="facrm/customer/index" class="form-control selectpage" name="row[customer_id]" type="text" value="{:isset($customer) ? $customer.id : ''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('项目')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-project_id" data-source="workteam/project/index" class="form-control selectpage" name="row[project_id]" type="text" value="{:isset($project) ? $project.id : ''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('任务')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-task_id" data-source="workteam/task/index" class="form-control selectpage" name="row[task_id]" type="text" value="{:isset($task) ? $task.id : ''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_client')}:</label>
        <div class="col-xs-12 col-sm-8">
			<input id="c-service_client" data-source='{:config_to_source($service_client)}' data-field="value" data-primary-key="key" data-order-by="key" data-multiple="true" class="form-control selectpage" name="row[service_client]" type="text" value=""   >
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[service_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_hours')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_hours" data-rule="required;range(0~999)" class="form-control" name="row[service_hours]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Secret')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-secret" class="form-control editor" rows="5" name="row[secret]" cols="50"></textarea>
        </div>
    </div>
	<div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
